<template>
	<view>
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src:'',
			}
		},
		onLoad() {
			this.src = uni.getStorageSync('webviewSrc');
			uni.removeStorageSync('webviewSrc');
		},
		onBackPress() {
			if (uni.getStorageSync('fromStart')) {
				uni.setStorageSync('fromStart',false);
				uni.switchTab({
					url:'/pages/index/index'
				})
				return true;
			}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
